package com.cats.template.sys.utils;

import com.cats.template.sys.pojo.dto.UserDto;
import org.apache.shiro.SecurityUtils;

/**
 * @author duxiaobo
 * @date 2021/9/185:46 下午
 */
public class UserInfoUtils {
    public static UserDto getCurrentUser() {
        UserDto userDto = (UserDto) SecurityUtils.getSubject().getPrincipal();
        return userDto;
    }
}
